from distutils.command.install import INSTALL_SCHEMES

# Tell distutils to put the data_files in platform-specific installation
# locations. See here for an explanation:
# http://groups.google.com/group/comp.lang.python/browse_thread/thread/35ec7b2fed36eaec/2105ee4d9e8042cb
for scheme in INSTALL_SCHEMES.values():
            scheme['data'] = scheme['purelib']

from glob import glob
pkg_config = {
    'name': 'duetopia-rdf',
    'author': 'William Waites, Jo Walsh',
    'author_email': 'ww@styx.org, jo@frot.org',
    'url': 'http://irl.styx.org/duetopia/',
    'description': 'Duetopia RDF Support Routines',
    'long_description': """
Duetopia RDF Support Routines
    """,
    'packages': ['duetopia', 'duetopia.rdf'],
    'data_files': [
    ],
    'version': '0.1',
    'license': 'GPL',
    'platforms': ['all'],
}

if __name__ == '__main__':
    from distutils.core import setup
    from os import environ

    if "DUETOPIA_VERSION" in environ:
        pkg_config['version'] = environ["DUETOPIA_VERSION"]

    setup(**pkg_config)
